package com.qdxwx.common.utils;

import com.alibaba.fastjson2.JSON;
import java.util.Map;

/**
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
public class FastJsonUtils {
    @SuppressWarnings("unchecked")
    public static Map<String, Object> json2Map(String json) {
        return JSON.parseObject(json, Map.class);
    }

    @SuppressWarnings("unchecked")
    public static Map<String, String> json2StringMap(String json) {
        return JSON.parseObject(json, Map.class);
    }
}
